﻿using RBAC.Repository;
using Sowrk03_28.Repository.Interface;
using Swork03_28.Domain.TraceableInfos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Sowrk03_28.Repository.Impls
{
    public class FarmedRepository : Repository<Farmed>, IFarmedRepository
    {
        public FarmedRepository(MyDbContext dbcontext) : base(dbcontext)
        {
        }

        public async Task<List<Farmed>> AllAsync()
        {
            return await base.AllAsync();
        }

        public async Task<int> CreateAsync(Farmed entity)
        {
            return await base.CreateAsync(entity);
        }

        public async Task<int> DeleteAllAsync(List<Farmed> t)
        {
            return await base.DeleteAllAsync(t);
        }

        public async Task<int> DeleteAsync(Farmed entity)
        {
            return await base.DeleteAsync(entity);
        }

        public async Task<Farmed> GetAsync(int id)
        {
            return await base.GetAsync(id);
        }

        public async Task<List<Farmed>> GetValues(Expression<Func<Farmed, bool>> expre)
        {
            return await base.GetValues(expre);
        }

        public async Task<int> UpdateAsync(Farmed entity)
        {
            return await base.UpdateAsync(entity);
        }
    }
}
